package com.yj_app.qualitytest.info;

import android.text.TextUtils;

import androidx.annotation.NonNull;

import org.litepal.crud.LitePalSupport;

import java.io.Serializable;

public class WorkerInfo extends LitePalSupport implements Serializable {

    /**
     * usercode : 01020109
     * username : null
     * nickname : 韩蒙
     */

    private String usercode;
    private String username;
    private String nickname;

    public String getUsercode() {
        return TextUtils.isEmpty(usercode) ? "" : usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = (TextUtils.isEmpty(usercode) ? "" : usercode);
    }

    public String getUsername() {
        return TextUtils.isEmpty(username) ? "" : username;
    }

    public void setUsername(String username) {
        this.username = (TextUtils.isEmpty(username) ? "" : username);
    }

    public String getNickname() {
        return TextUtils.isEmpty(nickname) ? "" : nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = (TextUtils.isEmpty(nickname) ? "" : nickname);
    }

    @NonNull
    @Override
    public String toString() {
        return getNickname();
    }
}
